import Opt from '@/components/dt/info/Opt.js'

class Column extends Opt {

  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
      type: 'index',
      title: '序号',
      minWidth: 50,
    }, {
      field: 'orgName',
      title: '所属组织',
      minWidth: 160
    }, {
      field: 'housesName',
      title: '案场名称',
      minWidth: 180
    }, {
      field: 'allowanceType',
      title: '津贴类型',
      minWidth: 150,
      cell: {
        text: {
          type: 'dict',
          key: 'allowanceTypeTwo'
        }
      }
    }, {
      field: 'allowanceMonth',
      title: '发放月份',
      minWidth: 120
    }, {
      field: 'workNo',
      title: '工号',
      minWidth: 120
    }, {
      field: 'userName',
      title: '姓名',
      minWidth: 120
    }, {
      field: 'postName',
      title: '岗位',
      minWidth: 120
    }, {
      field: 'standardMoney',
      title: '标准金额(元)',
      minWidth: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    }, {
      field: 'issuanceRatio',
      title: '发放比例(%)',
      minWidth: 150
    }, {
      field: 'standardWork',
      title: '标准工作日',
      minWidth: 150
    }, {
      field: 'absentWork',
      title: '发放月缺勤天数',
      minWidth: 150
    }, {
      field: 'isReissueStr',
      title: '是否补发',
      minWidth: 150
    }, {
      field: 'reissueMonth',
      title: '补发月份',
      minWidth: 120
    }, {
      field: 'reissueMoney',
      title: '补发津贴(元)',
      minWidth: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    }, {
      field: 'currentMonthMoney',
      title: '本月津贴(元)',
      minWidth: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    }, {
      field: 'adjustMoney',
      title: '调整金额(元)',
      minWidth: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    }, {
      field: 'actualMoney',
      title: '实发金额(元)',
      minWidth: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    }]
  }

}

export default Column
